package nju.software.xkxt.service;

import java.util.List;

import nju.software.xkxt.service.model.CourseModel;

/**
 * @author typ
 *
 */
public interface CourseService {
	/**
	 * 获取course列表
	 * 
	 * @return
	 */
	public List<CourseModel> getCourse();
	/**
	 * 根据courseId删除一条课程信息
	 * @param courseId
	 * @return
	 */
	public boolean delete(int courseId);
	/**
	 * 增加course
	 * @param courseModel
	 * @return
	 */
	public long addCourse(CourseModel courseModel);
	/**
	 * 更新
	 * @param courseModel
	 * @return
	 */
	public boolean updateCourse(CourseModel courseModel);
	/**
	 * 根据id获得course
	 * @param c_id
	 * @return
	 */
	public CourseModel getCourseById(int c_id);
	/**
	 * 根据tid获得course
	 * @param c_id
	 * @return
	 */
	public List<CourseModel> getCourseByTId(int t_id);

}
